Integrand size = 20, antiderivative size = 152 \[ \int \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2 \, dx=\frac {2 b e n \left (d+\frac {e}{\sqrt {x}}\right ) \sqrt {x} \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{d^2}+\frac {2 b e^2 n \log \left (1-\frac {d}{d+\frac {e}{\sqrt {x}}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{d^2}+x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2+\frac {b^2 e^2 n^2 \log (x)}{d^2}-\frac {2 b^2 e^2 n^2 \operatorname {PolyLog}\left (2,\frac {d}{d+\frac {e}{\sqrt {x}}}\right )}{d^2} \]
[Out]
Time = 0.20 (sec) , antiderivative size = 152, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.450, Rules used = {2501, 2504, 2445, 2458, 2389, 2379, 2438, 2351, 31} \[ \int \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2 \, dx=\frac {2 b e^2 n \log \left (1-\frac {d}{d+\frac {e}{\sqrt {x}}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{d^2}+\frac {2 b e n \sqrt {x} \left (d+\frac {e}{\sqrt {x}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{d^2}+x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2-\frac {2 b^2 e^2 n^2 \operatorname {PolyLog}\left (2,\frac {d}{d+\frac {e}{\sqrt {x}}}\right )}{d^2}+\frac {b^2 e^2 n^2 \log (x)}{d^2} \]
[In]
[Out]
Rule 31
Rule 2351
Rule 2379
Rule 2389
Rule 2438
Rule 2445
Rule 2458
Rule 2501
Rule 2504
Rubi steps \begin{align*} \text {integral}& = 2 \text {Subst}\left (\int x \left (a+b \log \left (c \left (d+\frac {e}{x}\right )^n\right )\right )^2 \, dx,x,\sqrt {x}\right ) \\ & = -\left (2 \text {Subst}\left (\int \frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{x^3} \, dx,x,\frac {1}{\sqrt {x}}\right )\right ) \\ & = x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2-(2 b e n) \text {Subst}\left (\int \frac {a+b \log \left (c (d+e x)^n\right )}{x^2 (d+e x)} \, dx,x,\frac {1}{\sqrt {x}}\right ) \\ & = x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2-(2 b n) \text {Subst}\left (\int \frac {a+b \log \left (c x^n\right )}{x \left (-\frac {d}{e}+\frac {x}{e}\right )^2} \, dx,x,d+\frac {e}{\sqrt {x}}\right ) \\ & = x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2-\frac {(2 b n) \text {Subst}\left (\int \frac {a+b \log \left (c x^n\right )}{\left (-\frac {d}{e}+\frac {x}{e}\right )^2} \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{d}+\frac {(2 b e n) \text {Subst}\left (\int \frac {a+b \log \left (c x^n\right )}{x \left (-\frac {d}{e}+\frac {x}{e}\right )} \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{d} \\ & = \frac {2 b e n \left (d+\frac {e}{\sqrt {x}}\right ) \sqrt {x} \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{d^2}+\frac {2 b e^2 n \log \left (1-\frac {d}{d+\frac {e}{\sqrt {x}}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{d^2}+x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2-\frac {\left (2 b^2 e n^2\right ) \text {Subst}\left (\int \frac {1}{-\frac {d}{e}+\frac {x}{e}} \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{d^2}-\frac {\left (2 b^2 e^2 n^2\right ) \text {Subst}\left (\int \frac {\log \left (1-\frac {d}{x}\right )}{x} \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{d^2} \\ & = \frac {2 b e n \left (d+\frac {e}{\sqrt {x}}\right ) \sqrt {x} \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{d^2}+\frac {2 b e^2 n \log \left (1-\frac {d}{d+\frac {e}{\sqrt {x}}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{d^2}+x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2+\frac {b^2 e^2 n^2 \log (x)}{d^2}-\frac {2 b^2 e^2 n^2 \text {Li}_2\left (\frac {d}{d+\frac {e}{\sqrt {x}}}\right )}{d^2} \\ \end{align*}
Time = 0.08 (sec) , antiderivative size = 172, normalized size of antiderivative = 1.13 \[ \int \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2 \, dx=x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2+\frac {b e n \left (2 a d \sqrt {x}+2 b e n \log \left (d+\frac {e}{\sqrt {x}}\right )+2 b d \sqrt {x} \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )-2 e \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right ) \log \left (e+d \sqrt {x}\right )+b e n \log (x)+b e n \left (\log \left (e+d \sqrt {x}\right ) \left (\log \left (e+d \sqrt {x}\right )-2 \log \left (-\frac {d \sqrt {x}}{e}\right )\right )-2 \operatorname {PolyLog}\left (2,1+\frac {d \sqrt {x}}{e}\right )\right )\right )}{d^2} \]
[In]
[Out]
\[\int {\left (a +b \ln \left (c \left (d +\frac {e}{\sqrt {x}}\right )^{n}\right )\right )}^{2}d x\]
[In]
[Out]
\[ \int \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2 \, dx=\int { {\left (b \log \left (c {\left (d + \frac {e}{\sqrt {x}}\right )}^{n}\right ) + a\right )}^{2} \,d x } \]
[In]
[Out]
\[ \int \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2 \, dx=\int \left (a + b \log {\left (c \left (d + \frac {e}{\sqrt {x}}\right )^{n} \right )}\right )^{2}\, dx \]
[In]
[Out]
\[ \int \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2 \, dx=\int { {\left (b \log \left (c {\left (d + \frac {e}{\sqrt {x}}\right )}^{n}\right ) + a\right )}^{2} \,d x } \]
[In]
[Out]
\[ \int \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2 \, dx=\int { {\left (b \log \left (c {\left (d + \frac {e}{\sqrt {x}}\right )}^{n}\right ) + a\right )}^{2} \,d x } \]
[In]
[Out]
Timed out. \[ \int \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2 \, dx=\int {\left (a+b\,\ln \left (c\,{\left (d+\frac {e}{\sqrt {x}}\right )}^n\right )\right )}^2 \,d x \]
[In]
[Out]